#include <stdio.h>
int main() {
    unsigned int n;
    
    printf("请输入要生成的斐波那契数列项数: ");
    scanf("%u", &n);
    
    if (n == 0) return 1;
    
    unsigned long long a = 0, b = 1;
    printf("%llu", a);
    
    for (unsigned int i = 1; i < n; i++) {
        printf(" %llu", b);
        unsigned long long next = a + b;
        a = b;
        b = next;
    }
    printf("\n");
    
    return 0;
}